home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-04d.zip / 04d / CHIP / Porady / Niewidoczny w sieci / TOR 0.1.2.7 / vidalia-bundle-0.1.2.7-alpha-0.0.10.exe / Privoxy / templates / blocked next >
Text File  |  2006-11-04  |  10KB  |  273 lines

  1. ##########################################################
  2. #
  3. # "Blocked" Error Output template for Privoxy.
  4. #
  5. #  NOTE: UNLIKE THE OTHER TEMPLATES, THIS ONE USES
  6. #  JavaScript write() TO GENERATE THE PAGE IN JS_AWARE
  7. #  BROWSERS. SYMBOL SUBSTITUTIONS THAT RESULT IN MULTILINE
  8. #  STRINGS WILL BREAK THE JavaScript SYNTAX.
  9. #  USE WITH CAUTION.
  10. #
  11. # USING HTML TEMPLATES:
  12. # ---------------------
  13. #
  14. # Template files are written in plain HTML, with a few
  15. # additions:
  16. # - Lines that start with a '#' character like this one
  17. #   are ignored
  18. #
  19. # - Each item in the below list of exported symbols will
  20. #   be replaced by dynamically generated text, if they
  21. #   are enclosed in '@'-characters. E.g. The string @version@
  22. #   will be replaced by the version number of Privoxy.
  23. #
  24. # - One special application of this is to make whole blocks
  25. #   of the HTML template disappear if the condition <name>
  26. #   is not given. Simply enclose the block between the two
  27. #   strings @if-<name>start and if-<name>-end@. The strings
  28. #   should be placed in HTML comments (<!-- -->), so the
  29. #   html structure won't be messed when the magic happens.
  30. #   
  31. # USABLE SYMBOLS IN THIS TEMPLATE:
  32. # --------------------------------
  33. #
  34. #  my-ip-addr:
  35. #    The IP-address that the client used to reach this proxy
  36. #  my-hostname:
  37. #    The hostname associated with my-ip-addr
  38. #  admin-address:
  39. #    The email address of the pxoxy's administrator, as configured
  40. #    in the config file
  41. #  default-cgi:
  42. #    The URL for the "main menu" builtin CGI of this proxy
  43. #  menu:
  44. #    List of <li> elements linking to the other available CGIs
  45. #  version:
  46. #    The version number of the proxy software
  47. #  code-status:
  48. #    The development status of the proxy software: "alpha", "beta",
  49. #    or "stable".
  50. #  homepage:
  51. #    The URL of the SourceForge ijbswa project, who maintains this
  52. #    software.
  53. #
  54. #  protocol:
  55. #    The request's protocol: http:// or https://
  56. #  hostport:
  57. #    The host and port part of the blocked request's URL.
  58. #  path:
  59. #    The path part of the blocked request's URL.
  60. #  path-ue:
  61. #    The path part of the blocked request's URL, url-encoded.
  62. #
  63. #
  64. # CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
  65. # ------------------------------------------------------------------
  66. #
  67. #  unstable:
  68. #    This is an alpha or beta release of the proxy software
  69. #  have-adminaddr-info:
  70. #    An e-mail address for the local Privoxy adminstrator has
  71. #    been specified and is available through the "admin-address"
  72. #    symbol
  73. #  have-proxy-info:
  74. #    A URL for online documentation about this proxy has been
  75. #    specified and is available through the "proxy-info-url"
  76. #    symbol
  77. #  have-help-info:
  78. #    If either have-proxy-info is true or have-adminaddr-info is
  79. #    true, have-help-info is true.  Used to conditionally include
  80. #    a grey box for any and all help info.
  81. #  force-support:
  82. #    Privoxy has been compiled with support for forced loading
  83. #    of blocked content. In that case, the symbol "force-prefix" is
  84. #    avaiable, which translates to the FORCE_PREFIX  
  85. #
  86. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  87. <html>
  88.  <head>
  89.   <title>Request blocked (Privoxy@@my-hostname@)</title>
  90.   <meta http-equiv="Content-Style-Type" content="text/css">
  91.   <meta http-equiv="Content-Script-Type" content="text/javascript">
  92.   <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  93.   <meta name="robots" content="noindex,nofollow">
  94.   <link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
  95.   <script type="text/javascript" language="javascript">
  96.   <!--
  97.     /*
  98.      * Is this window or frame too small
  99.      * for the full-blown "blocked" page?
  100.      */
  101.     function isSmallFrame()
  102.     {
  103.        minWidth  = 650;
  104.        minHeight = 330;
  105.  
  106.        /* 
  107.         * Navigator, Mozilla, Opera
  108.         */
  109.        if (window.innerWidth 
  110.            && (window.innerWidth >= minWidth) 
  111.            && (window.innerHeight >= minHeight))
  112.        {
  113.           return false;
  114.        }
  115.  
  116.        /* 
  117.         * MSIE
  118.         */
  119.        else if (document.body && document.body.clientWidth 
  120.                 && (document.body.clientWidth >= minWidth)
  121.                 && (document.body.clientHeight >= minHeight))
  122.        {
  123.           return false;
  124.        }
  125.  
  126.        /*
  127.         * Small window or unsupported browser
  128.         */
  129.        return true;
  130.    }
  131.   //-->
  132.   </script>
  133.  </head>
  134.  <body>
  135.   <script type="text/javascript" language="javascript">
  136.   <!--
  137. #   Note: The same small version is used at the bottom
  138. #         of this file in the <noscript> context. If you
  139. #         make changes here, keep the other version in sync!
  140.  
  141.   if (isSmallFrame())
  142.   {
  143.      document.write('\
  144.    <p class="small" align="center"> \
  145.     <a href="@default-cgi@" target="_blank">Privoxy</a> blocked <b>@protocol@@hostport@@path@</b>. \
  146.     <br><a href="@default-cgi@show-url-info?url=@hostport@@path-ue@" target="_blank">See why</a> \
  147.     <!-- @if-force-support-start --> \
  148.     or <a href="http://@hostport@@force-prefix@@path@">go there anyway</a>. \
  149.     <!-- if-force-support-end@ --> \
  150.    </p> \
  151.    ');
  152.  
  153.   }
  154.   else
  155.   {
  156.      document.write('\
  157.   <table cellpadding="20" cellspacing="10" border="0" width="100%">\
  158.     <tr> \
  159.       <td class="status"> \
  160.         BLOCKED \
  161.       </td> \
  162.       <td class="title" width=100%> \
  163.          <h1> \
  164.           This is <a href="@homepage@">Privoxy</a> @version@ on @my-hostname@ (@my-ip-address@), port @my-port@, \
  165.           @if-enabled-display-then@enabled@else-not-enabled-display@disabled@endif-enabled-display@ \
  166.         </h1> \
  167.       </td> \
  168.     </tr> \
  169.  \
  170. <!-- @if-unstable-start --> \
  171. # This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in \
  172.     <tr> \
  173.       <td class="warning" colspan="2"> \
  174.         <h2>Warning:</h2> \
  175.         <p> \
  176.           <b>Please note that this <font color=red>@code-status@</font> release \
  177.           of the proxy software is not intended for production systems! \
  178.           <br>Use at your own risk. See the <a href="http://www.gnu.org/copyleft/gpl.html">license</a> for details.</b> \
  179.         </p> \
  180.       </td> \
  181.     </tr> \
  182. <!-- if-unstable-end@ --> \
  183.  \
  184.     <tr> \
  185.       <td class="box" colspan="2"> \
  186.         <h2>Request for blocked URL</h2> \
  187.         <p>Your request for <b>@protocol@@hostport@@path@</b> was blocked. \
  188.           <br><a href="@default-cgi@show-url-info?url=@hostport@@path-ue@">See why</a> \
  189.     <!-- @if-force-support-start --> \
  190.           or <a href="http://@hostport@@force-prefix@@path@">go there anyway</a>. \
  191. <!-- if-force-support-end@ --> \
  192.         </p> \
  193.       </td> \
  194.     </tr> \
  195.  \
  196.     <tr> \
  197.       <td class="box" colspan="2"> \
  198.         <h2>More Privoxy:</h2> \
  199.         <ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul> \
  200.       </td> \
  201.     </tr> \
  202.  \
  203.     <tr> \
  204.       <td class="info" colspan="2"> \
  205.         <big><b>Support and Service via Sourceforge:</b></big> \
  206.         <p> \
  207.           We value your feedback. To provide you with the best support, \
  208.           we ask that you: \
  209.         </p> \
  210.         <ul> \
  211.           <li> \
  212.             use the <a href="http://sourceforge.net/tracker/?group_id=11118&atid=211118">support forum</a> or (better) the \
  213.             <a href="http://sourceforge.net/mail/?group_id=11118">mailing lists</a> to get help. \
  214.           </li> \
  215.           <li> \
  216.             submit banners and all problems with the actions file only through the \
  217.             <a href="javascript:void(window.open(\'http://www.privoxy.org/actions\',\'Feedback\',\'width=600,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no\').focus());">actions \
  218.             file feedback system</a>. \
  219.           </li> \
  220.           <li> \
  221.             submit bugs only through our <a href="http://sourceforge.net/tracker/?group_id=11118&atid=111118">bug tracker</a>. \
  222.             Make sure that the bug has not yet been submitted. \
  223.           </li> \
  224.           <li> \
  225.             submit feature requests only through our <a href="http://sourceforge.net/tracker/?atid=361118&group_id=11118&func=browse">feature \
  226.             request tracker</a>. \
  227.           </li> \
  228.         </ul> \
  229.       </td> \
  230.     </tr> \
  231.  \
  232. <!-- @if-have-help-info-start --> \
  233.     <tr> \
  234.       <td class="info" colspan="2"> \
  235.         <h2>Local Privoxy support:</h2> \
  236.  \
  237. <!-- @if-have-proxy-info-start --> \
  238.         <p>You can consult the <a href="@proxy-info-url@">online documentation</a> for more information about this Privoxy installation.</p> \
  239. <!-- if-have-proxy-info-end@ --> \
  240.  \
  241. <!-- @if-have-adminaddr-info-start --> \
  242.         <p>Address e-mail questions about this service to \
  243.           <a href="mailto:@admin-address@"><code>@admin-address@</code></a>, \
  244.           who will be glad to help you. \
  245.         </p> \
  246. <!-- if-have-adminaddr-info-end@ --> \
  247.       </td> \
  248.     </tr> \
  249. <!-- if-have-help-info-end@ --> \
  250.  \
  251.   </table> \
  252.      ');
  253.   }
  254.   //-->
  255.   </script>
  256.  
  257. #   Note: The same small version is used above via JavaScript
  258. #         If you make changes here, keep the other version in sync!
  259.  
  260.   <noscript>
  261.    <p class="small" align="center">
  262.     <a href="@default-cgi@" target="_blank">Privoxy</a> blocked <b>@protocol@@hostport@@path@</b>.
  263.     <br><a href="@default-cgi@show-url-info?url=@hostport@@path-ue@" target="_blank">See why</a>
  264.     <!-- @if-force-support-start -->
  265.     or <a href="http://@hostport@@force-prefix@@path@">go there anyway</a>.
  266.     <!-- if-force-support-end@ -->
  267.    </p>
  268.   </noscript>
  269.  
  270.  </body>
  271. </html>
  272.